home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 5 #1 / ADA CD-ROM - Alde Publishing.iso / cm / cas2.sid < prev    next >
Encoding:
Text File  |  1988-05-03  |  3.8 KB  |  82 lines

  1. --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
  2. -- UNIT NAME         : COUNT_OF_ADA_STATEMENTS_2
  3. -- VERSION           : 1.0
  4. -- REVIEW CODE       : 
  5. -- DDN ADDRESS       : RCONN at SIMTEL20
  6. -- AUTHOR            : Richard Conn
  7. --                   : TI Ada Technology Branch
  8. --                   : Box 801, MS 8007
  9. --                   : McKinney, TX  75069
  10. -- COPYRIGHT         : 
  11. -- DATE CREATED      : 14 Feb 85
  12. -- DATE RELEASED     : 15 Feb 85
  13. -- DATE LAST UPDATED : 15 Feb 85
  14. -- LOCATION          : C2MUG
  15. -- LOCATION          : ASR
  16. -- ENVIRONMENT       : DEC VAX/VMS, DEC Ada
  17. --= CLASSIFICATION       ===============================================--
  18. -- CATEGORY LEVEL 1  : COMPONENTS
  19. -- CATEGORY LEVEL 2  : COUNT Ada STATEMENTS
  20. -- CATEGORY LEVEL 3  : Count of Ada Statements 2
  21. -- CATEGORY LEVEL 4  : 
  22. -- KEYWORD           : Source analysis
  23. -- KEYWORD           : Quantity
  24. -- KEYWORD           : Statements
  25. -- INDEX             : CAS2
  26. -- INDEX             : Source Analysis
  27. -- INDEX             : Analysis, Source
  28. -- INDEX             : Quantity
  29. -- INDEX             : Statements
  30. -- TAXONOMY          : 
  31. -- DEPENDENCIES      : 
  32. -- SEE ALSO          : PD:<ADA.COMPONENTS>CAS3, PD:<ADA.COMPONENTS>COUNTADA
  33. --= FILE LISTING         ===============================================--
  34. -- FILE SPECS        : PD:<ADA.COMPONENTS>CAS2.*
  35. -- DIRECTORY DISPLAY :
  36. -- Directory   PD:<ADA.COMPONENTS>
  37. --      File Name     Byte Count  Line Count
  38. --   ---------------  ----------  ----------
  39. --   CAS2.ADA               6942         190
  40. --   CAS2.PRO               2452          62
  41. --   ===============  ==========  ==========
  42. --     2 Files              9394         252
  43. --= ABSTRACT             ===============================================--
  44. --         This  procedure  calculates  the  "STATEMENTS"  of a valid Ada
  45. -- fragment specified by a FILE_NAME string parameter.  It need not be  a
  46. -- complete  compilation  unit, but it should have closed all open parens
  47. -- and strings.
  48. -- 
  49. --         The Ada statement is defined by a semicolon terminator outside
  50. -- of comments, parentheses,  or  string  or  character  literals.   This
  51. -- definition is insensitive to formatting or layout of the source.
  52. -- 
  53. --         There are exotic cases for which  this  will  misestimate  the
  54. -- count but we have never encountered one in real code.
  55. -- 
  56. --         This  procedure  is  derived  from  Bill  Whitaker's  original
  57. -- COUNT_OF_ADA_STATEMENTS,   and   it   does  not  change  his  original
  58. -- algorithm.  It adds a line count and a character-checksum hash (sum of
  59. -- POS values of all non-space characters in the file mod 256).
  60. --= REVISION HISTORY     ===============================================--
  61. --
  62. -- Derivation   : COUNT_OF_ADA_STATEMENTS by Bill Whitaker
  63. --
  64. -- DATE         VERSION         AUTHOR          HISTORY
  65. -- 19850215     1.0             R Conn          Initial Release
  66. --
  67. --= RELEASE NOTICE       ===============================================--
  68. -- This software is released to the Public Domain (note:
  69. --   software released to the Public Domain is not subject
  70. --   to copyright protection).
  71. --= DISCLAIMER           ===============================================--
  72. --     This software and its documentation are provided "AS IS" and
  73. -- without any expressed or implied warranties whatsoever.  No warranties
  74. -- as to performance, merchantability, or fitness for a particular
  75. -- purpose exist.
  76. --     The user is advised to test the software thoroughly before
  77. -- relying on it.  The user must assume the entire risk and liability of
  78. -- using this software.  In no event shall any person or organization of
  79. -- people be held responsible for any direct, indirect, consequential or
  80. -- inconsequential damages or lost profits.
  81. --======================================================================--
  82.